home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970929-19971216 / 000177_news@newsmaster….columbia.edu _Fri Oct 24 10:22:27 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA07245
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 24 Oct 1997 10:22:26 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA00314
  7.     for kermit.misc@watsun; Fri, 24 Oct 1997 10:22:25 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Getting a string from the modem?
  12. Date: 24 Oct 1997 14:22:23 GMT
  13. Organization: Columbia University
  14. Lines: 39
  15. Message-ID: <62qauv$hvv$1@apakabar.cc.columbia.edu>
  16. References: <344FF6BD.65B7@netlink.com.au>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7957
  19.  
  20. In article <344FF6BD.65B7@netlink.com.au>,
  21. Ross Irvine  <rirvine@netlink.com.au> wrote:
  22. : I like to know how to do this:
  23. : output atdt55555\13
  24. :     wait for 90 OR wait for CONNECT, BUSY etc.
  25. : Basically after the output of the dial I want it to read the first
  26. : line that the modem returns and exit the input so I can process
  27. : if it was CONNECT/BUSY etc. BUT I also need it to timeout after X
  28. : seconds if nothing has been sent from the modem. So there are two exit
  29. : conditions. 1 if it gets something from the modem, and 2 exit after a
  30. : timeout.
  31. Current versions of MS-DOS Kermit, K-95, and C-Kermit have a "multiple
  32. input" command, MINPUT:
  33.  
  34.   <send init string and dial command>
  35.   MINPUT 90 CONNECT BUSY {NO ANSWER} {NO DIALTONE} ERROR ...
  36.   IF FAIL <none of these came from the modem within 90 seconds>
  37.   SWITCH \v(minput) {
  38.     :1, <have a connection>, BREAK
  39.     :2, <busy, try again>, BREAK
  40.     :3, <no answer, do something else>, BREAK
  41.     :4, <no dialtone, print an informative message>, BREAK
  42.     :5, <a bad command was given to the modem>, BREAK
  43.     :default, <something I didn't foresee>
  44.   }
  45.  
  46. In addition K95 and C-Kermit have a built-in DIAL command that already
  47. does all this.
  48.  
  49. See the Kermit website:
  50.  
  51.   http://www.columbia.edu/kermit/
  52.  
  53. for information about the latest releases of Kermit software.
  54.  
  55. - Frank